package org.platform.executor.diagnose;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd21002.TestDiagnoseTaskStopRequestParam;
import org.platform.mo.csmo.cmd21002.TestDiagnoseTaskStopResponseParam;
import org.platform.service.diagnose.DiagnoseTaskServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/5/12
 */
@Service
public class StopTestDiagnoseExecutor implements IMicProviderServiceExecutor<TestDiagnoseTaskStopRequestParam, TestDiagnoseTaskStopResponseParam> {
    @Autowired
    private DiagnoseTaskServiceImpl service;

    @Override
    public TestDiagnoseTaskStopResponseParam doExecute(TestDiagnoseTaskStopRequestParam requestParam) {
        return service.stopTestDiagnose(requestParam);
    }
}
